package org.microframework.cloud.system.controller;

import org.microframework.base.core.domain.R;
import org.microframework.cloud.system.service.ISysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class SysUserController {
	
    @Autowired
    private ISysUserService userService;
    
    @GetMapping("/info/{username}")
    public R<?> loadUserByUsername(@PathVariable("username") String username){
		return userService.loadUserByUsername(username);
    }
	
}
